# coding: utf-8
import sys
import os

# 获取当前脚本所在目录
current_dir = os.path.dirname(os.path.abspath(__file__))
# 获取 common 模块所在的父目录
parent_dir = os.path.dirname(current_dir)
# 将父目录添加到 Python 搜索路径
sys.path.append(parent_dir)


import matplotlib.pyplot as plt
from matplotlib.image import imread

img = imread(parent_dir + '/dataset/kongjie.jpg') #读入图像
plt.imshow(img)

plt.show()